package com.tecnalia.comm;

import java.io.Serializable;


public class ProtocolDataImpl implements Serializable,IProtocolData {

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 1L;

	/** The pep id. */
	private int ID = 0;
	
	/** The pep name. */
	private String name = "";

	/**
	 * Instantiates a new protocol data.
	 */
	public ProtocolDataImpl(){
		
	}
	
	/**
	 * Instantiates a new protocol.
	 *
	 * @param id the id
	 * @param pepName the pep name
	 * @param queryMode the query mode
	 */
	public ProtocolDataImpl(int id, String name){
		this.setID(id);
		this.setName(name);
	}
	
	/* (non-Javadoc)
	 * @see com.tecnalia.authz.common.comm.IProtocolData#getID()
	 */
	@Override
	public int getID() {
		return ID;
	}

	/* (non-Javadoc)
	 * @see com.tecnalia.authz.common.comm.IProtocolData#setID(int)
	 */
	@Override
	public void setID(int pepID) {
		this.ID = pepID;
	}

	/* (non-Javadoc)
	 * @see com.tecnalia.authz.common.comm.IProtocolData#getName()
	 */
	@Override
	public String getName() {
		return name;
	}

	/* (non-Javadoc)
	 * @see com.tecnalia.authz.common.comm.IProtocolData#setName(java.lang.String)
	 */
	@Override
	public void setName(String name) {
		this.name = name;
	}	
	
}
